package com.xydzxt.www.service;

import com.xydzxt.www.dao.ExamineeDao;
import com.xydzxt.www.dao.UserDao;
import com.xydzxt.www.model.Examinee;
import com.xydzxt.www.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ExamineeService {
    @Autowired
    ExamineeDao examineeDao;

    public List<Examinee> selectAllExaminee(Examinee examinee){
        return examineeDao.selectAllExaminee(examinee);
    }

    public boolean insert(Examinee examinee){
        return examineeDao.insert(examinee);
    }

    public Examinee selectByRegistId(int registId){
        return examineeDao.selectByRegistId(registId);
    }
}
